package com.deer.wms.base.system.service.item.impl;

import com.deer.wms.base.system.dao.item.ItemSpecificationMapper;
import com.deer.wms.base.system.model.item.ItemSpecification;
import com.deer.wms.base.system.service.item.ItemSpecificationService;
import com.deer.wms.common.core.service.AbstractService;
import com.deer.wms.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ItemSpecificationServiceImpl extends AbstractService<ItemSpecification, Integer> implements ItemSpecificationService {
    @Autowired
    private ItemSpecificationMapper itemSpecificationMapper;
    @Override
    public ItemSpecification findItemSpecificationById(Integer Id) {
        return itemSpecificationMapper.findItemSpecificationById(Id);
    }

    @Override
    public List<ItemSpecification> findItemSpecificationByItemSpec(String itemSpec) {
        return itemSpecificationMapper.findItemSpecificationByItemSpec(itemSpec);
    }

    @Override
    public List<ItemSpecification> ItemSpecificationList() {
        return itemSpecificationMapper.ItemSpecificationList();
    }

    @Override
    public List<ItemSpecification> findItemSpecificationList(ItemSpecification itemSpecification) {
        return itemSpecificationMapper.findItemSpecificationList(itemSpecification);
    }

    @Override
    public int delectItemSpecificationByIds(String ids) {
        return itemSpecificationMapper.delectItemSpecificationByIds(Convert.toStrArray(ids));
    }

    @Override
    public int updateItemSpecification(ItemSpecification itemSpecification) {
        return itemSpecificationMapper.updateItemSpecification(itemSpecification);
    }

    @Override
    public int saveItemSpecification(ItemSpecification itemSpecification) {
        return itemSpecificationMapper.saveItemSpecification(itemSpecification);
    }
}
